package com.shopping.mall.main.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZZY
 * @Date 2021/7/2
 */
@Api("swagger测试接口")
@RestController
@Slf4j
@RequestMapping("/test")
public class TestController {

    @ApiOperation("测试方法")
    @GetMapping("/knife4j")
    public String test(){
        log.info("接收到了");
        return "生成knife4j Swagger";
    }
}
